difference between java and javascript in tabular form